package com.druid.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "安全资源请求参数实体对象")
public class SecurityResourceParam {

    @NotNull(groups = {RequestParamInterfaceGroup.DeleteGroup.class})
    @ApiModelProperty(value = "资源id")
    private Integer id;

    @NotBlank(groups = {RequestParamInterfaceGroup.InsertGroup.class})
    @ApiModelProperty(value = "资源名称")
    private String name;

    @NotBlank(groups = {RequestParamInterfaceGroup.InsertGroup.class})
    @ApiModelProperty(value = "资源路径")
    private String url;

    @NotNull(groups = {RequestParamInterfaceGroup.InsertGroup.class})
    @ApiModelProperty(value = "权限id")
    private Integer permissionId;

}
